package com.ming.mapper;

import com.ming.pojo.Sum;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SumMapper {

    @Select("SELECT COUNT(enter_time) as enterSum, COUNT(leave_time) as leaveSum, SUM(expense) as allExpense\n" +
            "FROM all_access_record")
    Sum getSum();
}
